#ifndef BATEAU_H_INCLUDED
#define BATEAU_H_INCLUDED

#define BATEAU_NON_POSSIBLE 0
#define BATEAU_POSSIBLE_V 1
#define BATEAU_POSSIBLE_H 2
#define BATEAU_POSSIBLE_VH 3

enum OrientationBateau
{
    ORIENTATION_H, ORIENTATION_V
};
typedef enum OrientationBateau OrientationBateau;

struct Bateau
{
    //SDL_Surface surface;
    OrientationBateau orientationBateau;
    int corps[5];
    int taille, x, y;
};
typedef struct Bateau Bateau;

//Bateau tabBateau[5];

void Bateau_init(Bateau tabBateau[5]); // surface = NULL; x = -1; y = -1;
int Bateau_possibilitePlacement(Bateau tabBateau[5], int num, int x, int y);
void Bateau_positionner(Bateau tabBateau[5], int num, OrientationBateau orientationBateau, int x, int y);
void Bateau_supprimer(Bateau tabBateau[5], int num);
int Bateau_bombarderCase(int x, int y, Bateau tabBateau[5]);
int Bateau_toutBombarde(Bateau tabBateau[5]);

#endif // BATEAU_H_INCLUDED
